ci: Merge PR validation workflows and add reason-specific labels#5898
Merged
stephanie-anderson merged 1 commit intomasterfrom Mar 27, 2026
Merged
ci: Merge PR validation workflows and add reason-specific labels#5898stephanie-anderson merged 1 commit intomasterfrom
stephanie-anderson merged 1 commit intomasterfrom
Conversation
Combine close-unvetted-pr.yml and enforce-draft-pr.yml into a single validate-pr.yml workflow. The vetting job runs first on opened and reopened events; the draft enforcement job depends on it and skips if the PR was already closed. Each closure reason now gets a specific label in addition to violating-contribution-guidelines: missing-issue-reference, missing-maintainer-discussion, or issue-already-assigned. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Langchain
Bug Fixes 🐛Ci
Openai
Other
Documentation 📚
Internal Changes 🔧Langchain
Openai
Other
Other
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ 1850 passed | ⏭️ 170 skipped | Total: 2020 | Pass Rate: 91.58% | Execution Time: 3m 32s All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 11995 uncovered lines. Generated by Codecov Action |
alexander-alderman-webb
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Combine
close-unvetted-pr.ymlandenforce-draft-pr.ymlinto a singlevalidate-pr.ymlworkflow so the draft enforcer doesn't run on PRs that were already closed by the vetting check.How it works:
validate-non-maintainer-prjob runs first onopenedandreopenedevents, outputswas-closedif it closes the PRenforce-draftjob depends on the first job vianeeds:and skips whenwas-closed == 'true'(usesif: always()so it still runs when the first job is skipped or succeeds without closing)Each closure reason now also gets a specific label alongside
violating-contribution-guidelines:missing-issue-reference— no issue ref in body, or referenced issues not foundmissing-maintainer-discussion— no prior discussion between author and a maintainerissue-already-assigned— referenced issue assigned to someone other than the PR authorCo-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com